import QtQuick 2.12
import QtQuick.Window 2.12

import OpenGLItem 1.0

Window {
    visible: true
    width: 1920
    height: 720
    title: qsTr("Hello World")
    objectName: "root"

    OpenGLItem{
        width: parent.width
        height: parent.height / 2
        y : height

        objectName: "adas"
    }


    Image {
        source: "qrc:/images/awesomeface.png"

        Timer{
            interval: 100
            running: true
            repeat: true
            onTriggered: {
                parent.rotation += 10

                parent.rotation %= 360
            }
        }
    }

    Rectangle{
        width: parent.width
        height: parent.height / 2
        color: "#fff"

        Text {
            text: qsTr("hello")
            font.pixelSize: 50
            color: "blue"
        }
    }


}
